home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000083_jaltman@watsun.cc.columbia.edu_Fri Nov 15 11:26:48 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  58 lines

  1. Article: 13850 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!jaltman
  3. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: C-Kermit FTP script
  6. Date: 15 Nov 2002 14:35:56 GMT
  7. Organization: Columbia University
  8. Lines: 41
  9. Message-ID: <ar30oc$4sh$1@newsmaster.cc.columbia.edu>
  10. References: <8ce22d01.0211131301.2d2c8112@posting.google.com> <8ce22d01.0211132107.1a569739@posting.google.com> <ar0j7k$ea6$1@watsol.cc.columbia.edu> <8ce22d01.0211142213.f427a53@posting.google.com>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1037370956 5009 128.59.39.2 (15 Nov 2002 14:35:56 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 15 Nov 2002 14:35:56 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13850
  16.  
  17. In article <8ce22d01.0211142213.f427a53@posting.google.com>,
  18. Dan Skinner <JDanSkinner@JDanSkinner.com> wrote:
  19.  
  20. : Yup;
  21. : Appreciated and agreed.  BUT I would expect a function for which any
  22. : part failed to yield a negative return code and which might allow me
  23. : to check more thourghly if I care. If I can't use the result of the
  24. : open in a subsequent function the result of the open should be fail?
  25. : Regards...Dan.
  26.  
  27. Kermit commands are implemented to serve dual purposes
  28.  
  29.  . be convenient for interactive use
  30.  
  31.  . be scriptable
  32.  
  33. These two purposes are often at odds.  The FTP OPEN command is an
  34. example.  For interactive use the FTP OPEN command is overloaded
  35. with numerous automatic behaviors that can take place after 
  36. successful completion:
  37.  
  38.   autologin
  39.   autoauthentication
  40.   autoencryption
  41.  
  42. None of these secondary functions can be tested with IF FAILURE.
  43. Instead they either must be tested by using variables or by 
  44. disabling the automatic behaviors and executing them manually.
  45.  
  46. For the FTP OPEN command to set the status to FAILURE after 
  47. a connection to the server was opened, but because the autologin
  48. failed would leave the session with an OPEN connection.  Subsequent
  49. FTP OPEN commands would then fail because there was already an open
  50. session.
  51.  
  52. The script would not realize it must execute an FTP CLOSE command.
  53.  
  54.  Jeffrey Altman * Sr.Software Designer     Kermit 95 2.0 GUI available now!!!
  55.  The Kermit Project @ Columbia University  SSH, Secure Telnet, Secure FTP, HTTP
  56.  http://www.kermit-project.org/            Secured with MIT Kerberos, SRP, and 
  57.  kermit-support@columbia.edu               OpenSSL.
  58.